import type {RouteRecordRaw} from 'vue-router';

export const staticRoutes: Array<RouteRecordRaw> = [
    {
        path: '/',
        redirect: '/home',
    },
    {
        name: 'Login',
        path: '/login',
        component: () => import('../pages/login/index.vue'),
        meta: {
            heidden: true
        }
    },

    {
        name: 'LoginWithEmail',
        path: '/loginWithEmail',
        component: () => import('../pages/login/loginWithEmail/index.vue'),
        meta: {
            title: "邮箱登录"
        },
    },
    {
        name: 'LoginWithPhone',
        path: '/loginWithPhone',
        component: () => import('../pages/login/loginWithPhone/index.vue'),
        meta: {
            title: "手机号登录"
        },
    },
    {
        name: 'Password',
        path: '/password',
        component: () => import('../pages/login/loginWithPhone/password/index.vue'),
        meta: {
            title: "密码登录"
        },
    },

    // 任意路由
    // export const anyRoute = {
    //     path: '/:pathMatch(.*)',
    //     name: 'Any',
    //     redirect: '/404',
    //     meta: {
    //         hidden: true
    //     }
    // }
	{
        path: '/search',
        name: 'search',
        component: () => import('@/pages/search/index.vue'),
        meta: {
            hidden: true
        }
    },
	{
        path: '/goodslist',
        name: 'goodslist',
        component: () => import('@/pages/goods/goodslist.vue'),
        meta: {
            hidden: true
        }
    },
    {
        path: '/home',
        name: 'Home',
        component: () => import('@/pages/Home/index.vue'),
        meta: { 
            title: '首页', 
              
        }
      },  
      {
        path: '/user',
        name: 'user',
        component: () => import('@/pages/user/index.vue'),
        meta: { 
            title: '个人中心', 
              
        }
          
        
      },  
      {
        path: '/personal',
        // name: 'personal',
        component: () => import('../pages/user/pages/personal/index.vue'),
        meta: { 
            title: '个人信息', 
              
        }
      },
      {
        path: '/cart',
        name: 'Cart',
        component: () => import('@/pages/cart/index.vue')
    },
    {
        path: '/worth_buy',
        name: 'WorthBuy',
        component: () => import('@/pages/Worth Buy/index.vue'),
        meta: {
            title: '值得买',
        },
    },
    {
        path:'/classify',
        name:'Classify',
        component:()=>import ('@/pages/classify/classify.vue'),
        meta:{
            title:'分类页'
        }
    },
    {
        path: '/goods',
        name: 'goods',
        component: () => import('../pages/goods/goods.vue'),
        meta: {
            title: '值得买',
        },
    },

]
